<?php
$query = "SELECT SUM(visites) AS total_absolu FROM spip_visites";
	$result = spip_query($query);

	if ($row = spip_fetch_array($result)) {
		$total_absolu = $row['total_absolu'];
	}


$query = "SELECT COUNT(DISTINCT ip) AS visites FROM spip_visites_temp";
		$result = spip_query($query);
	
	if ($row = @spip_fetch_array($result)) {
		$visites_today = $row['visites'];
}

$total_gen = $total_absolu + $visites_today;

echo "<strong>".$total_gen."</strong>";

?>